/* $Id: AbstractServlet.java 117 2011-08-22 16:35:13Z altdotua@gmail.com $ */

package alt.djudge.frontend.server.servlets;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class AbstractServlet extends HttpServlet
{
	private static final long serialVersionUID = 1L;
	
	public static final String defaultEncoding = "UTF-8";
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
	{
		doPost(req, resp);
	}
	
	@Override
	protected abstract void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;
}
